Skip to content

feat(example): add Facebook SDK login#1297

Closed
grdsdev wants to merge 8 commits into
mainfrom
feat/facebook-sdk-example
Closed

feat(example): add Facebook SDK login#1297
grdsdev wants to merge 8 commits into
mainfrom
feat/facebook-sdk-example

Conversation

@grdsdev
Copy link
Copy Markdown
Contributor

@grdsdev grdsdev commented Jan 14, 2026

What kind of change does this PR introduce?

Feature / example update

What is the current behavior?

The Supabase Flutter example only shows email/password auth and does not include a Facebook SDK login flow.

What is the new behavior?

Adds a Facebook SDK sign-in flow to the example using , plus platform setup for Android and iOS and README setup guidance.

Additional context

Facebook App ID/client token and Supabase URL/keys remain placeholders for local configuration.

@coveralls
Copy link
Copy Markdown

coveralls commented Jan 14, 2026

Pull Request Test Coverage Report for Build 21251112215

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.4%) to 80.342%

Files with Coverage Reduction New Missed Lines %
packages/gotrue/lib/src/gotrue_client.dart 5 64.09%
Totals Coverage Status
Change from base Build 20716397421: 0.4%
Covered Lines: 3380
Relevant Lines: 4207

💛 - Coveralls

The flutter_secure_storage_web 1.2.1 dependency (from flutter_facebook_auth)
uses deprecated web APIs (dart:html, dart:js_util) that are incompatible with
Flutter's WASM compilation.

This commit adds dependency overrides for the flutter_secure_storage package
and its platform implementations to use newer versions that support the modern
web APIs (dart:js_interop).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@jeremiahseun
Copy link
Copy Markdown

I checked through the facebook auth issue, and I realize that it is a docs issue. The flutter_facebook_auth package handles the login well. However, the misunderstanding is the documentation not explaining how it works.

I will send a fix soon so that it is clear, and I will mention every issue mentioned. @grdsdev
cc @dshukertjr

@jeremiahseun
Copy link
Copy Markdown

I am unable to update the PR so that it will cover the new Facebook changes

grdsdev and others added 6 commits April 8, 2026 05:37
…example

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…mple

- Keep facebook_auth_desktop and flutter_secure_storage_darwin imports
- Keep flutter_facebook_auth dependency, update supabase_flutter to ^2.12.3

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…-dev for Linux build

- Revert flutter_lints from ^6.0.0 to ^3.0.1 to support Dart 3.3.x (Flutter 3.19.x)
- Add libsecret-1-dev to Linux build dependencies for flutter_secure_storage_linux

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
….3.x compatibility

4.0.0 depends on win32 >=5.5.1 which requires Dart >=3.4.0, breaking Flutter 3.19.x (Dart 3.3.4).
4.1.0 is compatible with Dart >=3.3.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…attempts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…n 3.x

The example app has dependencies incompatible with Dart 3.3.4 (Flutter 3.19.x).
Bootstrap the example only when running Flutter 3.x, where the dependencies resolve correctly.
Also add libsecret-1-dev required by flutter_secure_storage_linux on Linux.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@grdsdev grdsdev closed this Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants